<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
  <th:block th:include="include :: header('修改订单')" />
  <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <form class="form-horizontal m" id="form-order-edit" th:object="${goods}">
    <div class="form-group">
      <!--                <label class="col-sm-3 control-label is-required">订单编号：</label>-->
      <div class="col-sm-8">
        <input name="saleNo" th:field="*{id}" class="form-control" type="hidden">
      </div>
    </div>
    <div class="form-group">
      <!--                <label class="col-sm-3 control-label is-required">商品名字：</label>-->
      <div class="col-sm-8">
        <input name="goodName" th:field="*{goodName}" class="form-control" type="hidden">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">收货地址：</label>
      <div class="col-sm-8">
        <input name="address" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">商品数量：</label>
      <div class="col-sm-8">
        <input name="orderNum" class="form-control" type="text">
      </div>
    </div>
  </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
  var prefix = ctx + "system/goods";
  $("#form-order-edit").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/buy", $('#form-order-edit').serialize());
    }
  }
</script>
</body>
</html>